import React from "react"
import Music from './pages/Music';
import { HashRouter as Router, Route, Switch } from "react-router-dom"
import Fm from './pages/My/Fm'
import Ss from "./pages/ss"
import Login from './pages/login';
import PhoneLogin from "./pages/login/phonelogin"
import List from './pages/My/List'
import ListDetail from './pages/My/listdetail'
import Discover from "./pages/Discover"
import RecommendDaily from "./pages/Discover/Daily"
import Playlist from "./pages/Discover/playlist"
import RankList from "./pages/Discover/RankList"
import ListDetails from "./pages/Discover/ListDetails"
import Player from "./pages/Discover/player"
import ChartSong from "./pages/Discover/ChartSong"
// import Detail from './pages/details';
import Song from './pages/My/detailsong'
import Geren from "./pages/ss/geren"
import Xiangqing from "./pages/Move/wymv/xiangqing"
import Paihang from "./pages/Move/wymv/paihang"
import Fang from "./pages/ss/fang";
import Ado from "./pages/My/audio";
import Local from "./pages/My/localMusic";
import Song1 from "./pages/My/songdetail";
import Now from "./pages/My/nowPlay";
import Plays from "./pages/My/nowplays";
import Load from "./pages/My/loading"

class App extends React.Component {
  render() {
    return (
      <Router>
        <Switch>
          {/* <Route path="/detail" component={Detail} /> */}
          <Route path="/login/phonelogin" component={PhoneLogin} />
          <Route path="/login" component={Login} />
          <Route path="/ss/geren" component={Geren}/>
          <Route path="/ss/fang" component={Fang}/>
          <Route path="/move/xiangqing" component={Xiangqing}/>
          <Route path="/move/paihang" component={Paihang}/>
          <Route path="/list/detail/song" component={Song}></Route>
          <Route path="/list/detail" component={ListDetail}></Route>
          <Route path="/Discover/Playlist/ListDetails" component={ListDetails} />
          <Route path="/Discover/Playlist/ChartSong" component={ChartSong} />
          <Route path="/Discover/Playlist" component={Playlist} />
          <Route path="/Discover/RankList" component={RankList} />
          <Route path="/Discover/Daily" component={RecommendDaily} />
          <Route path="/Discover/player" component={Player} />
          <Route path="/Discover" component={Discover} />
          <Route path="/fm" component={Fm}></Route>
          <Route path="/ss" component={Ss} />
          <Route path="/my/audio" component={Ado}/>
          <Route path="/my/local/song" component={Song1}/>
          <Route path="/my/local" component={Local}/>
          <Route path="/my/now/plays" component={Plays}/>
          <Route path="/my/now"  component={Now}/>
          <Route path="/my/load" component={Load}/>
          <Route path="/login" component={Login} />
          <Route path="/list" exact component={List}></Route>
          <Route component={Music} />
        </Switch>
      </Router>
    );
  }
}
export default App

